package com.example.service;

import com.example.mapper.SalaryMapper;
import com.example.pojo.Salary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SalaryService {

    @Autowired
    private SalaryMapper salaryMapper;

    public Salary getSalaryByEmployeeId(String employeeId) {

        return salaryMapper.getSalaryByEmployeeId(employeeId);
    }

    public void updateSalary(Salary salary) {
        salaryMapper.updateSalary(salary);
    }
}
